import { DeviceType, PointerInput } from "@babylonjs/core/DeviceInput/InputDevices/deviceEnums";
import { DeviceSource } from "@babylonjs/core/DeviceInput/InputDevices/deviceSource";
import { InputKeyStatus } from '../input-key-status';
import { DeviceInputKey } from "../device-information";


/**
 * @internal
 * 生成鼠标预设
 * @param device 设备源
 * @returns 鼠标预设
 */
const MousePreset = (device: DeviceSource<DeviceType.Mouse>) => {
    return {
        Left: new InputKeyStatus(DeviceInputKey.mouseLeft, PointerInput.LeftClick, device),
        Middle: new InputKeyStatus(DeviceInputKey.mouseMiddle, PointerInput.MiddleClick, device),
        Right: new InputKeyStatus(DeviceInputKey.mouseRight, PointerInput.RightClick, device),
    };
};


export { MousePreset };